<div class="tab lf">
    <span class="no-activitie" routerLink="/login">
        < 推广商 </span> <p style='margin-top: -3.5rem;text-align: center;font-size: 2.5rem;'>
           站点配置
            </p>
</div>

<div class="register-body" *ngIf='isShowUrl'>

    <div class="form-databody white-input">
        <form autocomplete="off" off [formGroup]="form">

            <div class="weui-cell weui-cell_vcode">
                <label for="">版权信息:</label>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" autocomplete="off" [readonly]="disabled" off placeholder="输入版权"
                        formControlName="copyright" />
                </div>
                <div class="weui-cell__ft" *ngIf='!form.controls.copyright.valid && form.controls.copyright.dirty'><i
                        style="width: 2rem;margin-left: 1rem;" class="weui-icon-warn"></i></div>
            </div>

            <div class="weui-cell weui-cell_vcode">
                <label for="">站点名称: </label>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" autocomplete="off" [readonly]="disabled" off placeholder="输入站点名称"
                        formControlName="siteName" />
                </div>
                <div class="weui-cell__ft" *ngIf='!form.controls.siteName.valid && form.controls.siteName.dirty'><i
                        style="width: 2rem;margin-left: 1rem;" class="weui-icon-warn"></i></div>
            </div>

            <div class="weui-cell weui-cell_vcode">
                <label for="">选择站点来源: </label>
                <div class="weui-cell__bd">
                    <div class="sel" (click)="onShow('auto')">{{selUrlType?.text}} <span>▼</span></div>
                    <weui-actionsheet #auto [menus]="menus" [config]="config"></weui-actionsheet>
                </div>
                <div class="weui-cell__ft" *ngIf='!form.controls.urlType.valid && form.controls.urlType.dirty'><i
                        style="width: 2rem;margin-left: 1rem;" class="weui-icon-warn"></i></div>
            </div>

            <div class="weui-cell weui-cell_vcode">
                <label for="">站点URL地址: </label>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" autocomplete="off" off [readonly]="disabled"
                        placeholder="{{'bankPage.input5' | translate}}" formControlName="url" />
                </div>
                <div class="weui-cell__ft" *ngIf='!form.controls.url.valid && form.controls.url.dirty'><i
                        style="width: 2rem;margin-left: 1rem;" class="weui-icon-warn"></i></div>
            </div>

            <div class="weui-cell weui-cell_vcode">
                <label for="">平台LOGO: </label>
                <div class="weui-cell__bd">
                    <div class="weui-uploader">
						<clain-image-upload formControlName="logo" *ngIf="!disabled"></clain-image-upload>
						<img [src]="form.controls.logo.value" *ngIf="disabled" style="width: 15rem;height:15rem;" />
                        <div class="weui-cell__ft" *ngIf='!form.controls.logo.valid && form.controls.logo.dirty'>
                            <i style="width: 2rem;margin-left: 1rem;" class="weui-icon-warn"></i>
                        </div>
                    </div>
                </div>
            </div>

            <div class="register-subbtn">
                <button (click)='onNext()' weui-button [disabled]="!this.form.valid">下一步，配置游戏</button>
            </div>
        </form>
    </div>

</div>


<div class="register-body" *ngIf='!isShowUrl'>
    <div class="list-box">
        <weui-navbar>
            <weui-tab heading="H5游戏" (select)='changeGames("H5Game")'>
                <article class="weui-article">
                    <div class="list-body">
                        <div class="list" *ngFor="let item of gameList" (click)='selectGame(item)'>
                            
                            <img src="{{item.thumbnail}}" alt="">
                            <div class="text">
                                {{item.name | getstatus2 : lang}}
                            </div>
                            <div class="check">
                                <img *ngIf='!item.checkd' src="../../../assets/images/websiteRedeploy/n.png" alt="">
                                <img *ngIf='item.checkd' src="../../../assets/images/websiteRedeploy/y.png" alt="">
                            </div>
                        </div>
                    </div>
                </article>
            </weui-tab>

            <weui-tab heading="休闲游戏" (select)='changeGames("CasualGame")'>
                <article class="weui-article">
                    <div class="list-body">
                        <div class="list" *ngFor="let item of gameList" (click)='selectGame(item)'>
                            
                            <img src="{{item.thumbnail}}" alt="">
                            <div class="text">
                                {{item.name | getstatus2 : lang}}
                            </div>
                            <div class="check">
                                <img *ngIf='!item.checkd' src="../../../assets/images/websiteRedeploy/n.png" alt="">
                                <img *ngIf='item.checkd' src="../../../assets/images/websiteRedeploy/y.png" alt="">
                            </div>
                        </div>
                    </div>
                </article>
            </weui-tab>
        </weui-navbar>
        <div class="sub-btn">
            <a (click)='onSave(form)' class="ok" >确认提交</a>
        </div>
        <div class="sub-btn">
            <a (click)='isShowUrl = true' class="back" >上一步，基本信息</a>
        </div>
    </div>

</div>